package com.buymobile.components.ibatis;

import com.ibatis.sqlmap.engine.mapping.statement.MappedStatement;
import com.ibatis.sqlmap.engine.mapping.statement.SelectStatement;

public class CountStatementHelper {
	
	public static final String SQL_COUNT_POSTFIX=".count";
	
	public static MappedStatement createCountStatement(MappedStatement selectStatement) {   
        return new CountStatement((SelectStatement) selectStatement);   
    }   
  
    public static String getCountStatementId(String selectStatementId) {   
        return selectStatementId + SQL_COUNT_POSTFIX;   
    }   
  
}
